﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Absky.Web.Controllers;

namespace Absky.Web.Areas.OrganizationModule.Controllers
{
    [Area("OrganizationModule")]
    public class CompanyController : BaseController
    {
        public IActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// 获取映射数据
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public IActionResult GetMap(string ver)
        {
            //var data = companyIBLL.GetModelMap();
            //string md5 = Md5Helper.Encrypt(data.ToJson(), 32);
            //if (md5 == ver)
            //{
            //    return Success("no update");
            //}
            //else
            //{
            //    var jsondata = new
            //    {
            //        data = data,
            //        ver = md5
            //    };
            //    return Success(jsondata);
            //}
            return Json(new { Ver = ver, Data = "{}" });
        }
    }
}
